page {
  height: 100%;
  background: #fff;
}

.take-parcel {
  height: 100vh;
  overflow-y: auto;
  background: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 88px;

  .content {
    padding-bottom: 88px;
    flex: 1;
    
    .banner {
      width: 100%;
      display: block;
    }

    .form {
      padding: 16px 24px;

      .form-item {
        margin-bottom: 16px;

        .label {
          font-size: 16px;
          color: #333;
          margin-bottom: 6px;
        }

        .input {
          width: 100%;
          height: 36px;
          background: #F5F5F5;
          border-radius: 6px;
          padding: 0 8px;
          box-sizing: border-box;
          font-size: 14px;
        }

        .textarea {
          width: 100%;
          height: 100px;
          background: #F5F5F5;
          border-radius: 6px;
          padding: 12px 16px;
          box-sizing: border-box;
          font-size: 14px;
        }

        .placeholder {
          color: #999;
        }

        .tip {
          font-size: 14px;
          color: #999;
          margin-top: 6px;
        }

        .unit-room {
          display: flex;
          align-items: center;

          .unit {
            flex: 0 0 160px;
          }

          .separator {
            margin: 0 16px;
            color: #333;
            font-size: 16px;
          }

          .room {
            flex: 1;
          }
        }

        .address-wrapper {
          display: flex;
          align-items: center;
          gap: 12px;

          .input {
            flex: 1;
          }

          .btn-edit-address {
            flex-shrink: 0;
            width: 80px;
            height: 36px;
            font-size: 14px;
            color: var(--nutui-color-primary);
            background: transparent;
            border: 1px solid var(--nutui-color-primary);
            border-radius: 6px;
            padding: 0;
            line-height: 34px;
          }
        }

        .price {
          display: inline;
          color: var(--nutui-color-primary);
        }
      }
    }
  }

  .footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 24px;
    border-top: 1px solid #F5F5F5;
    background: #fff;
    z-index: 100;

    .btn {
      width: 100%;
      height: 40px;
      border-radius: 8px;
      font-size: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: none;

      .button-content {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 4px 0;

        .text {
          font-size: 16px;
          font-weight: 500;
        }
      }

      &.btn-publish {
        background: var(--nutui-color-primary);
        color: #fff;
        font-weight: bold;
      }
    }
  }
}

.number-input-wrapper {
  display: flex;
  align-items: center;
  
  .btn-number {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    background: #f5f5f5;
    border-radius: 4px;
    
    &.minus {
      margin-right: 12px;
    }
    
    &.plus {
      margin-left: 12px;
    }
    
    &:active {
      opacity: 0.8;
    }
  }
  
  .number-input {
    width: 120px;
    text-align: center;
  }
}

.image-upload-area {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;

  .image-item {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;

    .preview-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .remove-icon {
      position: absolute;
      top: 0;
      right: 0;
      width: 20px;
      height: 20px;
      background-color: rgba(0, 0, 0, 0.5);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      z-index: 1;
    }
  }

  .upload-button {
    width: 80px;
    height: 80px;
    background-color: #f5f5f5;
    border: 1px dashed #ddd;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    .plus-icon {
      font-size: 24px;
      color: #999;
      line-height: 1;
    }
    
    .upload-text {
      font-size: 12px;
      color: #999;
      margin-top: 4px;
    }
  }
}
